package com.kfm.order.mapper;

import com.kfm.common.domain.entity.Orders;
import com.kfm.common.domain.model.Sale;
import com.kfm.common.domain.model.Saleroom;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrdersMapper {
    int deleteByPrimaryKey(String orderId);

    int insert(Orders record);

    int insertSelective(Orders record);

    Orders selectByPrimaryKey(String orderId);

    int updateByPrimaryKeySelective(Orders record);

    int updateByPrimaryKey(Orders record);

    List<Orders> selectByMId(Integer mid);

    List<Orders> selectAll();

    List<Orders> selectByCondition(Map<String, String> map);

    List<Sale> selectSales();

    List<Saleroom> selectSaleroom();
}